// ignore_for_file: file_names

import 'package:flutter/material.dart';

class MyApp7 extends StatelessWidget {
  const MyApp7(
      {super.key,
      this.title = '',
      this.content = '',
      this.textCol = Colors.black,
      this.textSize = 0});

  final String title;
  final String content;
  final Color textCol;
  final double textSize;
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          backgroundColor: Colors.orange,
          toolbarHeight: 100,
          title: Center(
            child: Text(
              '$title ',
              style: const TextStyle(color: Colors.white, fontSize: 50),
            ),
          ),
        ),
        body: const MyContainer(),
      ),
    );
  }
}

class MyContainer extends StatelessWidget {
  const MyContainer({super.key});

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Row(
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
        children: [
          const Text('无题'),
          Image.asset('open_eyes.png'),
          const Text(
            '垂死病中惊坐起 \n扶摇直上九万里 \n仰天大笑出门去 \n归来倚仗自叹息',
            style: TextStyle(fontSize: 40),
          ),
        ],
      ),
    );
  }
}
